/**
 * 
 */
package com.lmm.servlet;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.SpringServletContainerInitializer;

/**
 * @author leiming
 *
 */
@WebServlet("/helloMavenWebapp/*")
public class HelloMavenWebappServlet2 extends HttpServlet {
	private static final long serialVersionUID = 8963265462953694987L;
	
	@Override
	public void doGet(HttpServletRequest req, HttpServletResponse resp)
			throws ServletException, IOException {
		//SpringServletContainerInitializer
		resp.getWriter().println("Get:/helloMavenWebapp2");
	}

	@Override
	public void doPost(HttpServletRequest req, HttpServletResponse resp)
			throws ServletException, IOException {
		resp.getWriter().println("Post:/helloMavenWebapp");
	}
}
